package com.wdl.modules.myhouse.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 文件表
 *
 * @author lucain sunlightcs@gmail.com
 * @since 1.0.0 2022-08-13
 */
@Data
@ApiModel(value = "文件表")
public class FileDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	private Integer id;

	@ApiModelProperty(value = "文件类型id")
	private Integer fileTypeId;

	@ApiModelProperty(value = "文件名")
	private String fileName;

	@ApiModelProperty(value = "文件地址")
	private String fileUrl;

	@ApiModelProperty(value = "文件标签")
	private String fileTag;

	@ApiModelProperty(value = "文件描述信息")
	private String fileDescribe;

	@ApiModelProperty(value = "文件图片信息")
	private byte[] fileImg;

	@ApiModelProperty(value = "文件大小")
	private Float fileSize;
	@ApiModelProperty(value = "图片在线地址")
	private String imgUrl;

	@JsonFormat(pattern = "yyyy年MM月dd日",timezone="Asia/Shanghai")
	private Date uploadTime;

	private Integer collection;
	private Integer likes;
	private Integer comments;
}